package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 账套信息
 * </p>
 *
 * @author baiqiang
 * @since 2020-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_account")
@ApiModel(value="ErpAccount对象", description="账套信息")
public class ErpAccount extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "启用期间")
    @TableField("enable_duration")
    private Integer enableDuration;

    @ApiModelProperty(value = "账套名称")
    @TableField("account_name")
    private String accountName;

    @ApiModelProperty(value = "开始日期")
    @TableField("begin_date")
    private LocalDate beginDate;

    @ApiModelProperty(value = "结束日期")
    @TableField("end_date")
    private LocalDate endDate;

    @ApiModelProperty(value = "是否是首年 0：否 1 ：是")
    @TableField("is_first_year")
    private Boolean isFirstYear;

    @ApiModelProperty(value = "本币代码")
    @TableField("base_currency_code")
    private String baseCurrencyCode;

    @ApiModelProperty(value = "本币符号")
    @TableField("base_currency_symbol")
    private String baseCurrencySymbol;

    @ApiModelProperty(value = "本币名称")
    @TableField("base_currency_name")
    private String baseCurrencyName;

    @ApiModelProperty(value = "单位名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "公司类型")
    @TableField("company_type")
    private String companyType;

    @ApiModelProperty(value = "行业性质")
    @TableField("company_industry")
    private String companyIndustry;

    @ApiModelProperty(value = "企业法人")
    @TableField("legal_person")
    private String legalPerson;

    @ApiModelProperty(value = "联系电话")
    @TableField("contact_number")
    private String contactNumber;

    @ApiModelProperty(value = "开户银行")
    @TableField("opening_bank")
    private String openingBank;

    @ApiModelProperty(value = "行政区IDs")
    @TableField("area_ids")
    private String areaIds;

    @ApiModelProperty(value = "行政区")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "报税地区")
    @TableField("tax_area")
    private String taxArea;

    @ApiModelProperty(value = "统一社会代码")
    @TableField("unified_social_code")
    private String unifiedSocialCode;

    @ApiModelProperty(value = "纳税性质(一般纳税人/小规模税人)")
    @TableField("tax_nature")
    private String taxNature;

    @ApiModelProperty(value = "税率")
    @TableField("tax_rate")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "邮政编码")
    @TableField("postal_code")
    private String postalCode;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "状态 （1：使用中 2.已结算）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "账套主管ID")
    @TableField("account_master_id")
    private Integer accountMasterId;

    @ApiModelProperty(value = "账套主管姓名")
    @TableField("account_master_name")
    private String accountMasterName;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;


}
